wayland: Respect GDK_DEBUG=default-settings
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Jun 2020 15:13:07 +0000 (11:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 28 Jun 2020 17:42:02 +0000 (13:42 -0400)
You can get this in other ways for Wayland (by
setting GSETTINGS_BACKEND=memory), but it is better
to be consistent across backends.

gdk/wayland/gdkdisplay-wayland.c

index cd8fe1e3cc56ac9088cf55a03d10972a0326d877..af30f9cfc2770feaa3cabf240db799148d950c2a 100644 (file)
@@ -2079,6 +2079,9 @@ gdk_wayland_display_get_setting (GdkDisplay *display,
 {
   TranslationEntry *entry;
 
+  if (GDK_DISPLAY_DEBUG_CHECK (display, DEFAULT_SETTINGS))
+      return FALSE;
+
   if (GDK_WAYLAND_DISPLAY (display)->settings != NULL &&
       g_hash_table_size (GDK_WAYLAND_DISPLAY (display)->settings) == 0)
     return FALSE;